<template>
	<!-- 待补图 -->
	<view class="page">
		<view class="main">
			<view class="title">上传图片</view>
			<c-upLoadImgs :file.sync="list" maxCount="3"></c-upLoadImgs>
		</view>
		<view class="btn-box">
			<button class="btn" @click="addOrderImage">确定</button>
		</view>
	</view>
</template>

<script>
	export default {
		name: "addPhotos",
		data() {
			return {
				number:null,
				list: []
			};
		},
		onLoad(options) {
			console.log(options.param)
			this.number = options.param
		},
		onShow() {},
		methods: {
			addOrderImage(){
				this.$api.addOrderImage({number:this.number, image:this.list}).then(res=>{
					console.log("待补图")
					uni.switchTab({
						url: '/pages/tabbar/myIdentify'
					});
				})
		}}
	};
</script>

<style lang="scss" scoped>
	.main {
		padding: 32rpx;
		box-sizing: border-box;

		.title {
			font-weight: bold;
			font-size: 28rpx;
			color: #1A1A1A;
			margin-bottom: 20rpx;
		}
	}
</style>